#include<stdio.h>
#include<cs50.h>

const int N = 3;
float average(int length,int array[]);

int main(void){
    int scores[N];
    for(int i = 0;i < N;i++){
        scores[i] = get_int("Scores: ");
    }

    printf("Average: %f\n",average(N,scores));


}

float average(int length,int array[]){
   int sum = 0;
   for(int i = 0; i < length;i++){
    sum = sum + array[i];
   }

   return(sum / (float) N);
}
